<?php

class XianshiAction extends Action
{
	public function index() {
//		$record=M('record');
//		//dump($record->select());		
//		$wher['siteid']=$_GET['siteid'];
//		$list = $record->where($wher)->select();
//		
//		$this->assign('list',$list);
//		
		$record=M('site');
		//dump($record->select());
		
		$list = $record->select();
		
		$this->assign('list',$list);
		$this->display();

		
	}
     public function Xianshi() {
		$record=M('record');
		//dump($record->select());		
		$wher['siteid']=$_GET['siteid'];
		$list = $record->where($wher)->select();
		
		$this->assign('list',$list);
		
		
		$this->display(Xianshi);

		
	}

}

?>